<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
		<!-- Google Chrome Frame也可以让IE用上Chrome的引擎: -->
		<meta name="renderer" content="webkit">
		<!--国产浏览器高速模式-->
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="author" content="穷在闹市" />
		<!-- 作者 -->
		<meta name="revised" content="穷在闹市.v3, 2019/05/01" />
		<!-- 定义页面的最新版本 -->
		<meta name="description" content="网站简介" />
		<!-- 网站简介 -->
		<meta name="keywords" content="搜索关键字，以半角英文逗号隔开" />
		<title>明联人才后台</title>

		<!-- 公共样式 开始 -->
		<link rel="stylesheet" type="text/css" href="back_cssAndjs/css/base.css">
		<link rel="stylesheet" type="text/css" href="back_cssAndjs/css/iconfont.css">
		<script type="text/javascript" src="back_cssAndjs/framework/jquery-1.11.3.min.js"></script>
		<link rel="stylesheet" type="text/css" href="back_cssAndjs/layui/css/layui.css">
		<script type="text/javascript" src="back_cssAndjs/layui/layui.js"></script>
		<!-- 滚动条插件 -->
		<link rel="stylesheet" type="text/css" href="back_cssAndjs/css/jquery.mCustomScrollbar.css">
		<script src="back_cssAndjs/framework/jquery-ui-1.10.4.min.js"></script>
		<script src="back_cssAndjs/framework/jquery.mousewheel.min.js"></script>
		<script src="back_cssAndjs/framework/jquery.mCustomScrollbar.min.js"></script>
		<script src="back_cssAndjs/framework/cframe.js"></script>
		<!-- 仅供所有子页面使用 -->
		<!-- 公共样式 结束 -->

	</head>
<div class="demoTable">
			搜索姓名：
			<div class="layui-inline">
				<input class="layui-input" id="strLike" name="strLike" autocomplete="off">
			</div>
			<button class="layui-btn" data-type="reload" type="button" >搜索</button>
		</div>

	<table class="layui-hide" id="LAY_table_user" lay-filter="user"></table>

	<!--<script src="//res.layui.com/layui/dist/layui.js" charset="utf-8"></script>-->
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use('table', function() {
			var table = layui.table;

			//方法级渲染
			table.render({
				elem: '#LAY_table_user',
				url: 'resume_list',
				cols: [
					[{
						checkbox: true,
						fixed: true
					}, {
						field: 'resumeId',
						title: 'ID',
						width: 105,
						sort: true,
						fixed: true
					}, {
						field: 'comName',
						title: '意向企业',
						width: 105
					}, {
						field: 'userId',
						title: '用户名',
						width: 105,
						sort: true
					}, {
						field: 'resumeFile',
						title: '简历路径',
						width: 105
					}, {
						field: 'resumeState',
						title: '简历状态'
					}]
				],
				id: 'testReload',
				page: true,
				height: 310
			});

			var $ = layui.$,
				active = {
					reload: function() {
						var demoReload = $('#strLike');

						//执行重载
						table.reload('testReload', {
							page: {
								curr: 1 //重新从第 1 页开始
							},
							where: {
									"strLike": demoReload.val()
							}
						}, 'data');
					}
				};

			$('.demoTable .layui-btn').on('click', function() {
				var type = $(this).data('type');
				active[type] ? active[type].call(this) : '';
			});
		});
	</script>
	</body>
</html>